$OpenBSD: patch-libsrc_Wi_disk_c,v 1.1.1.1 2013/04/22 17:32:31 zhuk Exp $
Force usage of proper constant.
--- libsrc/Wi/disk.c.orig	Tue Jan 29 20:08:56 2013
+++ libsrc/Wi/disk.c	Tue Jan 29 20:12:44 2013
@@ -41,6 +41,12 @@
 # include <sys/mman.h>
 #endif
 
+#if HAVE_LIMITS_H
+# include <limits.h>
+#else
+# define LONG_MAX 0xffffffffffffffff
+#endif
+
 #define NO_DBG_PRINTF
 #include "libutil.h"
 #include "wi.h"
@@ -3621,7 +3627,7 @@ wi_open (char *mode)
   wi_inst.wi_n_bps = (short) BOX_ELEMENTS (wi_inst.wi_bps);
   {
     buffer_desc_t bd;
-    bd.bdf.flags = 0xffffffffffffffff;
+    bd.bdf.flags = LONG_MAX;
     bd.bdf.r.is_read_aside = 0;
     bdf_is_avail_mask = bd.bdf.flags;
   }
